home *** CD-ROM | disk | FTP | other *** search
- Path: ns.ftns.no!news
- From: kenneth@norconnect.no (Kenneth C. Nilsen)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: Shared library open and close functions
- Date: 17 Feb 1996 17:23:31 GMT
- Organization: A poorly-installed InterNetNews site
- Message-ID: <935.6621T819T991@norconnect.no>
- References: <510.6619T1238T1638@Th0r.foo.bar>
- NNTP-Posting-Host: norconnect.no
- X-Newsreader: THOR 2.22 (Amiga;TCP/IP)
-
- The 15-Feb-96 20:40:20, Christopher Naas wrote in msg n/a :
-
- >How do I add functions to a shared library that are called the first time the
- >library is opened and when the library is removed from memory?
- >I want one function that is called the first time the library is opened, and
- >one function that is called when the library is closed by the last user and
- >it is flushed from memory.
-
- 1) You have to make the library yourself cause OpenLibrary() calls a init
- when a library is opened for the first time and this can't be added
- inbetween. You can not use exec.library functions for this purpose.
-
- 2) You have to patch the OpenLibrary()/CloseLibrary() vector to call routines
- when your library is opened/closed, tho I will not recommend this.
-
-
- ---
- Worldwide Solutions AS \ Kenneth C. Nilsen (kenneth@norconnect.no)
- Advisor, developer \/\/\/\ http://www.norconnect.no/~kenneth/
- coordinator \
-
-